# _*_ coding:utf-8 _*_
# By:赵先宇
from lib.conf.config import settings
from lib.import_string import get_class


def run():
    """
    资产采集程序的入口
    :return:
    """
    # 'src.engine.agent.AgentHandler'
    engine_path = settings.ENGINE_DICT.get(settings.ENGINE)
    cls = get_class(engine_path)
    # 实例化对象 执行Handler()
    obj = cls()
    obj.handler()